﻿using System.Text.RegularExpressions;
using DataFiller.DataStorage.Interpreters;

namespace DataFillerTest
{
    public class TestInterpreter_col : InterpreterBase
    {
        public TestInterpreter_col()
        {
            base.Exp = "(\\A\\(col\\)=\\w)";
        }

        protected override dynamic RetrieveCorrespondingData(dynamic model)
        {
            return string.Format("col {0}", model);
        }
    }

    public class TestInterpreter_row : InterpreterBase
    {
        public TestInterpreter_row()
        {
            base.Exp = "(\\A\\(row\\)=\\w)";
        }

        protected override dynamic RetrieveCorrespondingData(dynamic model)
        {
            return string.Format("row {0}", model);
        }
    }

    public class TestInterpreter_fill : InterpreterBase
    {
        public TestInterpreter_fill()
        {
            base.Exp = "(\\A\\(fill\\)=\\w)";
        }

        protected override dynamic RetrieveCorrespondingData(dynamic model)
        {
            return string.Format("fill {0}", model);
        }
    }

}
